<%@page language="java" contentType="text/html; UTF-8" pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Lover</title>
    <%@include file="/WEB-INF/jsp/common/header.jsp" %>
    <script src="js/call.js"></script>
</head>
<body>
<h1 align="center">Hi ls' lovers</h1>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<table class="table table-striped table-hover">
				<thead>
					<tr>
						<th>
							编号
						</th>
						<th>
							芳名
						</th>
						
						<th>
							Photo
                        </th>
                        <th>
							价位
                        </th>
                        <th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
        
                    <c:forEach var="girl" items="${page.list}" varStatus="st">
                        <tr class="info">
                            <td>${girl.id}</td>
                            <td>${girl.name}</td>
                            <td>
                                <a href="pic?pic=${girl.photo}">
                                        <img src="imgs/${girl.photo}" width="90" height="160" onclick="makeLove('${girl.name}');"></td>
                                </a>
                               
                            <td>${girl.price}</td>
                            <td><a href="editGirl?id=${girl.id}">Edit</a> <a href="delGirl?id=${girl.id}">Del</a></td>
                       
            
                        </tr>
                    </c:forEach>
					
	
				</tbody>
			</table>
		</div>
    </div>
    <div>
        <a href="?start=1">首页</a>
        <a href="?start=${page.pageNum-1}">上一页</a>
        <a href="?start=${page.pageNum+1}">下一页</a>
        <a href="?start=${page.pages}">末页</a>

    </div>
</div>


  
    <form action="addGirl" method="post">

        name: <input name="name"> <br>
        price: <input name="price"> <br>
        Photo: <select name="photo" >
        <c:forEach var="img" items="${imgs}">
            <option value="${img}">
                    ${img}
            </option>
        </c:forEach>
    </select>
        <button type="submit">提交</button>
    </form>
    <a href="/toupload">UploadImg</a>



</body>
</html>